package cn.tedu.micro.demo.order.dao.repository.impl;

import cn.tedu.micro.demo.order.dao.mapper.OrderInfoMapper;
import cn.tedu.micro.demo.order.dao.repository.OrderRepository;
import cn.tedu.micro.demo.order.pojo.po.OrderInfoPO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
@Slf4j
public class OrderRepositoryImpl implements OrderRepository {
    @Autowired
    private OrderInfoMapper orderInfoMapper;
    @Override
    public void saveOrder(OrderInfoPO order) {
        orderInfoMapper.insert(order);
    }
}
